/*
 * PageSettings.cs - Wordtrainer
 * 
 * Copyright (C) 1998-2007 Markus Kilås
 *               
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 *
 * Authors:
 *   Markus Kilås <markus@markuspage.com>
 * 
 */

using System;

namespace WtSharp
{
	
	[Serializable]
	public class PageSettings
	{
		public enum PrintWordsType
		{
			Both,
			OnlyF,
			OnlyT
		}
		
		private bool m_bPrintTitle = true;
		
		private bool m_bPrintPageNumber = true;
		
		private PrintWordsType m_PrintWords = PrintWordsType.Both;
		
		private int m_nFontSize = 12;
		
		private int m_nMarginTop = 0;
		
		private int m_nMarginBottom = 0;
		
		private int m_nMarginLeft = 0;
		
		private int m_nMarginRight = 0;
		
		public PageSettings()
		{			
		}
		
		public bool PrintTitle
		{
			get
			{
				return m_bPrintTitle;
			}
			set
			{
				m_bPrintTitle = value;
			}
		}
		
		public bool PrintPageNumber
		{
			get
			{
				return m_bPrintPageNumber;
			}
			set
			{
				m_bPrintPageNumber = value;
			}
		}
		
		public PrintWordsType PrintWords
		{
			get
			{
				return m_PrintWords;
			}
			set
			{
				m_PrintWords = value;
			}
		}
		
		public int FontSize
		{
			get
			{
				return m_nFontSize;
			}
			set
			{
				m_nFontSize = value;
			}
		}
		
		public int MarginTop
		{
			get
			{
				return m_nMarginTop;
			}
			set
			{
				m_nMarginTop = value;
			}
		}
		
		public int MarginBottom
		{
			get
			{
				return m_nMarginBottom;
			}
			set
			{
				m_nMarginBottom = value;
			}
		}
		
		public int MarginLeft
		{
			get
			{
				return m_nMarginLeft;
			}
			set
			{
				m_nMarginLeft = value;
			}
		}
		
		public int MarginRight
		{
			get
			{
				return m_nMarginRight;
			}
			set
			{
				m_nMarginRight = value;
			}
		}
	}
}
